package com.cj.user.service.thread;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/17 20:42
 */
public class ThreadDemo extends Thread {

    private String name;

    public ThreadDemo(String name) {
        this.name = name;
    }


    @Override
    public void run() {
        System.out.println("线程3");
    }
    public static void main(String[] args) {
        //new ThreadDemo("线程1").run();
        new ThreadDemo("线程2").start();
    }
}
